package com.aiti.lulian.feign;

import com.aiti.base.core.utils.message.Message;
import com.aiti.lulian.feign.config.Configuration;
import com.aiti.lulian.feign.impl.CloudShowManagerSubServiceFallBack;
import com.aiti.lulian.feign.impl.LulianSubServiceCallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Primary;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Primary
@FeignClient(name = "cloud-lulian-subservice", fallback = LulianSubServiceCallback.class, configuration = Configuration.class)
public interface LulianSubService {

    @GetMapping("/bidding/getProjectDetailInfo/{projectId}")
    Message getProjectDetailInfo(@PathVariable("projectId") String projectId);

}
